package com.zygh.lz.controller.app;

import com.zygh.lz.service.NoticeService;
import com.zygh.lz.stapprove.ViLog;
import com.zygh.lz.vo.ResultBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "APP通知公告模块", description = "AppNoticeController")
@RestController
public class AppNoticeController {
    @Resource
    private NoticeService noticeService;

    @ApiOperation("根据接受部门查询所有公告")
    @GetMapping("selectAllNotice")
    @ViLog(logType = "1",module = "公告列表>根据接受部门查询所有公告")
    public ResultBean selectAllNotice(Integer sectionId){
        return noticeService.selectAllNotice(sectionId);
    }
}
